package com.yc.spring.vote.web;

import com.yc.spring.vote.biz.VoteBiz;
import com.yc.spring.vote.dao.VoteDao;
import lombok.Data;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;

import javax.annotation.Resource;

// 控制器 => Servlet
@Controller
@Data
public class VoteAction {
    @Resource(name="abc")
    VoteBiz biz;
    @Autowired
    @Qualifier("voteDao")
    VoteDao dao;

    public void test(){
        System.out.println("==========test========");
    }

    public void test1(){
        System.out.println("==========test1========");
        Object o = "1";
        Integer i = (Integer) o;
    }
}
